package com.简单项目.学生管理系统;

import java.util.Scanner;

public class Main {
    static Scanner sc = new Scanner(System.in);
    public static void main(String[] args) {
        while(true){

            System.out.println("======================\n");
            for (int i = 0; i < Student.vector.size(); i++) {
                System.out.println(i+"  "+Student.vector.get(i));
            }
            System.out.println("======================\n");
            System.out.println("1 新增  2 删除  3 更新  4 查找");

            switch (sc.nextInt()){
                case 1:
                    Student.add();
                    break;
                case 2:
                    Student.delete();
                    break;
                case 3:
                    Student.update();
                    break;
                case 4:
                    Student.find();
                    break;
            }
        }
    }
}
